@import '../global.less';

.el-message__closeBtn:focus,
.el-message__content:focus {
  outline-width: 0;
}

.el-message {
  position: fixed;
  left: 50%;
  top: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-width: 380px;
  padding: 15px 15px 15px 20px;
  border: 1px solid #e6ebf5;
  overflow: hidden;
  border-radius: @radius;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: opacity .3s,-webkit-transform .4s;
  transition: opacity .3s,-webkit-transform .4s;
  transition: opacity .3s,transform .4s;
  transition: opacity .3s,transform .4s,-webkit-transform .4s;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: #edf2fc;

  /*固定信息提示*/
  &.massage-fixed {
    margin-bottom: 10px;
    left: 0;
    top:0;
    position: relative;
    padding: 10px;
    transform: translateX(0);
  }
}

.el-message.is-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.el-message p {
  margin: 0;
}

.el-message--info .el-message__content {
  color: @info-color;
}

.el-message--success {
  background-color: #f0f9eb;
  border-color: #e1f3d8;
}

.el-message--success .el-message__content {
  color: @success-color;
}

.el-message--warning {
  background-color: #fdf5e6;
  border-color: #fbeccd;
}

.el-message--warning .el-message__content {
  color: @warning-color;
}

.el-message--error {
  background-color: #fee;
  border-color: #fedddd;
}

.el-message--error .el-message__content {
  color: @error-color;
}

.el-message__icon {
  margin-right: 10px;
}

.el-message__content {
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.el-message__closeBtn {
  position: absolute;
  top: 50%;
  right: 15px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  cursor: pointer;
  color: #b4bccc;
  font-size: 16px;
}

.el-message__closeBtn:hover {
  color: #878d99;
}

.el-message .el-icon-success {
  color: @success-color;
}

.el-message .el-icon-error {
  color: @error-color;
}

.el-message .el-icon-info {
  color: @info-color;
}

.el-message .el-icon-warning {
  color: @warning-color;
}

.el-message-fade-enter,
.el-message-fade-leave-active {
  opacity: 0;
  -webkit-transform: translate(-50%,-100%);
  transform: translate(-50%,-100%);
}
